<extend name='Block/Admin_public'/>
<block name="content" >
<script type="text/javascript">
    $(document).ready(function(){
        $(".del").click(function(){
            var path=$(this).parent().parent().find("img").attr("src");
            var url="{:U('albumDel')}";
            var id="{:I('id')}";
            var th=$(this);
            $.post(url,{path:path,id:id},function(data){
                //console.log(data);
                th.parent().parent().hide();
            });
        });
    });
</script>
    {:form('商品名称','go_name','text',$list['go_name'])}
    {:form('所属分类','classl_id','goodscategorylinkage',$list['classl_id'])}
    {:form('商品描述','go_describe','textarea',$list['go_describe'])}
    {:form('商品价格','go_value','text',$list['go_value'])}
    {:form('商品图片','go_pics','album',explode(',',$list['go_pics']))}
    {:form('商品品牌','brand_id','select',$list['brand_id'],$brand)}
    {:form('商品库存','go_num','text',$list['go_num'])}
    {:form('规格参数','specifications','text',$list['specifications'])}
    {:form('商品简介','go_info','ueditor',$list['go_info'])}

    
    {:form('状态','go_status','text',$list['go_status'])}
    {:form('提交','','submit')}		     
</block>